<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Logout extends MX_Controller {

	public function __construct() {
		parent::__construct();
		$this->template->set_partial('header_search', 'header/header_search');
		$this->template->set_partial('nav_bar', 'header/nav_bar');

	}

	function index(){
		$this->session->unset_userdata('mem_id');
		$this->session->unset_userdata('mem_email');
		$this->session->unset_userdata('mem_password');
		$this->session->unset_userdata('mem_mobile');
		$this->session->unset_userdata('mem_type');
		$this->session->unset_userdata('mem_your_name');
		$this->session->unset_userdata('mem_last_login_date');
		$this->session->unset_userdata('mem_last_login_ip');
		redirect('member/login');
	}
}	